<?php
include('../common/_const.php');
include('../common/common.php');
include('../common/checksession.php');
checksession("../index.php");
include('../../inc/conn.php');

$db=db_connect();
$sql=select_sql("`rootname`,`email`,`lasttime`,`loginip`,`logintims`","`".PRETABLE."adminuser`","1=1");

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $sys_title['member'];?></title>
<link href="../images/css1/css.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function isdel(o){
		if(window.confirm("确认删除!")){
		window.location.href="../action/ac_member_del.php?id="+o;
	}
}
</script>

</head>

<body>
<table class="table" cellspacing="1" cellpadding="2" width="99%" align="center" 
border="0">
  <tbody>
    <tr>
      <th class="bg_tr" align="left" colspan="6" height="25">
      	&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $sys_title['member'];?>
      </th>
    </tr>
    <tr>
      
	   <td width="15%" height="23" align="center" class="td_bg"><strong>账号</strong></td>
	   <td width="18%" height="23" align="center" class="td_bg"><strong>E-mail</strong></td>
	     <td width="18%" height="23" align="center" class="td_bg"><strong>最后登录时间</strong></td>
      <td align="center" class="td_bg"><strong>登录IP</strong></td>
	   <td width="8%" height="23" align="center" class="td_bg"><strong>登录次数</strong></td>
	    <td width="15%" height="23" align="center" class="td_bg"><strong>操作</strong></td>
    </tr>
	<?php 
	$rs=$db->query($sql);
	while($row=$rs->fetch_assoc()){
	?>
	 <tr>
     
	   <td  height="23" align="center" class="td_bg"><?php echo $row['rootname']; ?></td>
	   <td  height="23" align="center" class="td_bg"><?php echo $row['email']; ?></td>
	     <td  height="23" align="center" class="td_bg"><?php echo $row['lasttime']; ?></td>
      <td align="center" class="td_bg"><?php echo $row['loginip']; ?></td>
	  <td align="center" class="td_bg"><?php echo $row['logintims']; ?></td>
	    <td  height="23" align="center" class="td_bg"><a href="member_change.php?id=<?php echo $row['rootname']; ?>">修改密码</a> / <a href="javascript:isdel('<?php echo $row['rootname']; ?>');">删除</a></td>
    </tr>
	<?php 
	}
	$rs->close();
	$db->close();
	?>
  </tbody>
</table>

</body>
</html>